
public class TimeStampedMessage extends Message {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private TimeStamp ts;
	
	public TimeStampedMessage(Message m) {
		super(m.getSrc(), m.getDest(), m.getKind(), m.getData());
	}

	public TimeStamp getTs() {
		return ts;
	}

	public void setTs(TimeStamp ts) {
		this.ts = ts;
	}
	
	public String toString(){
		return super.toString() + ", time stamp: " + ts;
	}
	

}
